package com.rokyinfo.pdm.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;


/**
 * <p>
 * 没有SN号的设备表
 * </p>
 *
 * @author YuanZhiJian
 * @since 2017-01-22
 */
@TableName("d_mcu_device")
public class DMcuDevice extends Model<DMcuDevice> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 设备唯一标示
     */
	private String udid;
    /**
     * 型号ID
     */
	@TableField("model_id")
	private Long modelId;
    /**
     * 硬件版本号
     */
	@TableField("hardware_version")
	private String hardwareVersion;
    /**
     * 软件版本号
     */
	@TableField("software_version")
	private String softwareVersion;
    /**
     * 设备状态 0：初始 1：生产 2：已出货 3：退货
     */
	private Integer status;
    /**
     * 厂商ID
     */
	@TableField("firm_id")
	private Long firmId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 创建者ID
     */
	@TableField("create_by")
	private Long createBy;
    /**
     * 修改时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 更新者ID
     */
	@TableField("update_by")
	private Long updateBy;


	public String getUdid() {
		return udid;
	}

	public void setUdid(String udid) {
		this.udid = udid;
	}

	public Long getModelId() {
		return modelId;
	}

	public void setModelId(Long modelId) {
		this.modelId = modelId;
	}

	public String getHardwareVersion() {
		return hardwareVersion;
	}

	public void setHardwareVersion(String hardwareVersion) {
		this.hardwareVersion = hardwareVersion;
	}

	public String getSoftwareVersion() {
		return softwareVersion;
	}

	public void setSoftwareVersion(String softwareVersion) {
		this.softwareVersion = softwareVersion;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getFirmId() {
		return firmId;
	}

	public void setFirmId(Long firmId) {
		this.firmId = firmId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getCreateBy() {
		return createBy;
	}

	public void setCreateBy(Long createBy) {
		this.createBy = createBy;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Long getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(Long updateBy) {
		this.updateBy = updateBy;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Override
	protected Serializable pkVal() {
		return this.udid;
	}

}
